<template>
  <div>
      <h1>Inject2</h1>
      {{name}}
  </div>
</template>

<script>
export default {
    inject: ['name'],
    mounted(){
        const parent = this.$parent;
        console.log('parent', parent)
    }
}
</script>

<style>

</style>